word ="bottles"
for beer_num in range(99,0,-3):
    print(beer_num,word,"of beer on the wall.")
    print(beer_num,word,"of wall.")
    print("Take three down.")
    print("pass it around.")
    if beer_num == 3:
        print("No more bottles of beer on the wall.")
    else:
        new_num = beer_num -3
        if new_num == 3:
            word = "bottle"
            print(new_num,word,"of beer on the wall.")
        print()